package scauCmiScaffolding.compiled;

import org.eclipse.jet.JET2Context;
import org.eclipse.jet.JET2Template;
import org.eclipse.jet.JET2Writer;
import org.eclipse.jet.taglib.RuntimeTagElement;
import org.eclipse.jet.taglib.TagInfo;

public class _jet_autowiredEditorAndBinder_0 implements JET2Template {
    private static final String _jetns_c = "org.eclipse.jet.controlTags"; //$NON-NLS-1$
    private static final String _jetns_java = "org.eclipse.jet.javaTags"; //$NON-NLS-1$

    public _jet_autowiredEditorAndBinder_0() {
        super();
    }

    private static final String NL = System.getProperty("line.separator"); //$NON-NLS-1$
    
    private static final TagInfo _td_java_format_1_1 = new TagInfo("java:format", //$NON-NLS-1$
            1, 1,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_iterate_2_2 = new TagInfo("c:iterate", //$NON-NLS-1$
            2, 2,
            new String[] {
                "var", //$NON-NLS-1$
                "select", //$NON-NLS-1$
            },
            new String[] {
                "eachTable", //$NON-NLS-1$
                "$table", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_if_3_3 = new TagInfo("c:if", //$NON-NLS-1$
            3, 3,
            new String[] {
                "test", //$NON-NLS-1$
            },
            new String[] {
                "$eachTable/@isRelation='false'", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_5_12 = new TagInfo("c:get", //$NON-NLS-1$
            5, 12,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_5_69 = new TagInfo("c:get", //$NON-NLS-1$
            5, 69,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_iterate_9_2 = new TagInfo("c:iterate", //$NON-NLS-1$
            9, 2,
            new String[] {
                "var", //$NON-NLS-1$
                "select", //$NON-NLS-1$
            },
            new String[] {
                "eachTable", //$NON-NLS-1$
                "$table", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_if_10_3 = new TagInfo("c:if", //$NON-NLS-1$
            10, 3,
            new String[] {
                "test", //$NON-NLS-1$
            },
            new String[] {
                "$eachTable/@isRelation='false'", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_11_32 = new TagInfo("c:get", //$NON-NLS-1$
            11, 32,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_11_91 = new TagInfo("c:get", //$NON-NLS-1$
            11, 91,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_11_146 = new TagInfo("c:get", //$NON-NLS-1$
            11, 146,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );

    public void generate(final JET2Context context, final JET2Writer __out) {
        JET2Writer out = __out;
        RuntimeTagElement _jettag_java_format_1_1 = context.getTagFactory().createRuntimeTag(_jetns_java, "format", "java:format", _td_java_format_1_1); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_java_format_1_1.setRuntimeParent(null);
        _jettag_java_format_1_1.setTagInfo(_td_java_format_1_1);
        _jettag_java_format_1_1.doStart(context, out);
        JET2Writer _jettag_java_format_1_1_saved_out = out;
        while (_jettag_java_format_1_1.okToProcessBody()) {
            out = out.newNestedContentWriter();
            out.write(NL);         
            RuntimeTagElement _jettag_c_iterate_2_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "iterate", "c:iterate", _td_c_iterate_2_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_iterate_2_2.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_iterate_2_2.setTagInfo(_td_c_iterate_2_2);
            _jettag_c_iterate_2_2.doStart(context, out);
            while (_jettag_c_iterate_2_2.okToProcessBody()) {
                RuntimeTagElement _jettag_c_if_3_3 = context.getTagFactory().createRuntimeTag(_jetns_c, "if", "c:if", _td_c_if_3_3); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_if_3_3.setRuntimeParent(_jettag_c_iterate_2_2);
                _jettag_c_if_3_3.setTagInfo(_td_c_if_3_3);
                _jettag_c_if_3_3.doStart(context, out);
                while (_jettag_c_if_3_3.okToProcessBody()) {
                    out.write("\t\t\t@Autowired");  //$NON-NLS-1$        
                    out.write(NL);         
                    out.write("\t\t\tprivate ");  //$NON-NLS-1$        
                    RuntimeTagElement _jettag_c_get_5_12 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_5_12); //$NON-NLS-1$ //$NON-NLS-2$
                    _jettag_c_get_5_12.setRuntimeParent(_jettag_c_if_3_3);
                    _jettag_c_get_5_12.setTagInfo(_td_c_get_5_12);
                    _jettag_c_get_5_12.doStart(context, out);
                    _jettag_c_get_5_12.doEnd();
                    out.write("Editor ");  //$NON-NLS-1$        
                    RuntimeTagElement _jettag_c_get_5_69 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_5_69); //$NON-NLS-1$ //$NON-NLS-2$
                    _jettag_c_get_5_69.setRuntimeParent(_jettag_c_if_3_3);
                    _jettag_c_get_5_69.setTagInfo(_td_c_get_5_69);
                    _jettag_c_get_5_69.doStart(context, out);
                    _jettag_c_get_5_69.doEnd();
                    out.write("Editor;");  //$NON-NLS-1$        
                    out.write(NL);         
                    _jettag_c_if_3_3.handleBodyContent(out);
                }
                _jettag_c_if_3_3.doEnd();
                _jettag_c_iterate_2_2.handleBodyContent(out);
            }
            _jettag_c_iterate_2_2.doEnd();
            out.write("\t");  //$NON-NLS-1$        
            out.write(NL);         
            RuntimeTagElement _jettag_c_iterate_9_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "iterate", "c:iterate", _td_c_iterate_9_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_iterate_9_2.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_iterate_9_2.setTagInfo(_td_c_iterate_9_2);
            _jettag_c_iterate_9_2.doStart(context, out);
            while (_jettag_c_iterate_9_2.okToProcessBody()) {
                RuntimeTagElement _jettag_c_if_10_3 = context.getTagFactory().createRuntimeTag(_jetns_c, "if", "c:if", _td_c_if_10_3); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_if_10_3.setRuntimeParent(_jettag_c_iterate_9_2);
                _jettag_c_if_10_3.setTagInfo(_td_c_if_10_3);
                _jettag_c_if_10_3.doStart(context, out);
                while (_jettag_c_if_10_3.okToProcessBody()) {
                    out.write("\t\t\tbinder.registerCustomEditor(");  //$NON-NLS-1$        
                    RuntimeTagElement _jettag_c_get_11_32 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_11_32); //$NON-NLS-1$ //$NON-NLS-2$
                    _jettag_c_get_11_32.setRuntimeParent(_jettag_c_if_10_3);
                    _jettag_c_get_11_32.setTagInfo(_td_c_get_11_32);
                    _jettag_c_get_11_32.doStart(context, out);
                    _jettag_c_get_11_32.doEnd();
                    out.write(".class, \"");  //$NON-NLS-1$        
                    RuntimeTagElement _jettag_c_get_11_91 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_11_91); //$NON-NLS-1$ //$NON-NLS-2$
                    _jettag_c_get_11_91.setRuntimeParent(_jettag_c_if_10_3);
                    _jettag_c_get_11_91.setTagInfo(_td_c_get_11_91);
                    _jettag_c_get_11_91.doStart(context, out);
                    _jettag_c_get_11_91.doEnd();
                    out.write("Id\", ");  //$NON-NLS-1$        
                    RuntimeTagElement _jettag_c_get_11_146 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_11_146); //$NON-NLS-1$ //$NON-NLS-2$
                    _jettag_c_get_11_146.setRuntimeParent(_jettag_c_if_10_3);
                    _jettag_c_get_11_146.setTagInfo(_td_c_get_11_146);
                    _jettag_c_get_11_146.doStart(context, out);
                    _jettag_c_get_11_146.doEnd();
                    out.write("Editor);");  //$NON-NLS-1$        
                    out.write(NL);         
                    _jettag_c_if_10_3.handleBodyContent(out);
                }
                _jettag_c_if_10_3.doEnd();
                _jettag_c_iterate_9_2.handleBodyContent(out);
            }
            _jettag_c_iterate_9_2.doEnd();
            _jettag_java_format_1_1.handleBodyContent(out);
        }
        out = _jettag_java_format_1_1_saved_out;
        _jettag_java_format_1_1.doEnd();
    }
}
